package com.funny.stock.data.collect;

import com.funny.stock.data.vo.Stock;
import com.funny.stock.data.vo.StockDayData;
import com.funny.stock.data.vo.StockType;

import java.util.Date;
import java.util.List;

/**
 * @author pengl
 * @date 2020/05/02
 **/
public interface IStockDataSource extends RealTimeStockService{

    List<Stock> getOnlineStockList(int page, int pageSize, StockType type);

    Stock getStock(String code, StockType type);

//    RealtimeStockData getRealTimeStockData(String code, StockType type);

    List<StockDayData> getStockDataByDate(String code, StockType type, Date startDate, Date endDate) ;
}
